<?php
	session_start();
	include "include.php";
?>
<html>
<head>
<title><?php echo $SITE_TITLE ?> - Add Loot Manually</title>
<link rel="stylesheet" type="text/css" href="main.css" /></head>
<div id="container">
<div id="top">
<h1><?php echo $SITE_TITLE ?></h1>
</div>
<div id="leftnav">
<?php include "leftnav.php" ?>
</div>
<div id="content">
<?php
	mysql_connect(DB_HOST,DB_USER,DB_PASSWORD) or die(mysql_error());
	mysql_select_db(DB_NAME);
	$date_array = explode("/",$_POST["loot_date"]);
	$loot_date = mktime(20,0,0,$date_array[0],$date_array[1],$date_array[2]);
	$loot_players_name = $_POST["players_name"];
	$loot_items_id = get_item_id($_POST["items_name"]);	
	add_loot($loot_date,$loot_players_name,$loot_items_id);
?>
Item Added
</div>
<div id="footer">
<?php include "footer.php" ?>
</div>
</div>
</body>
</html>
